import React from 'react';
import { connect } from 'react-redux';
import SaleChance from '../components/Home/SaleChance';

class SaleChanceListContainer extends React.Component {
  render() {
    return (
      <SaleChance {...this.props} />
    );
  }
}

export default connect((state) => {
  const { saleChanceData, saleIsLoading, saleListCount, saleIsLoadMore } = state.saleChanceReducer;
  const { saleFilterObj } = state.SaleChanceFilterReducer;
  return {
    saleChanceData,
    saleIsLoading,
    saleListCount,
    saleIsLoadMore,
    saleFilterObj,
  };
})(SaleChanceListContainer);
